<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Area extends Model
{
    protected $table = 'area';

    protected $primaryKey = 'area_id';

    public $timestamps = false;
    //白名单
    protected $fillable = [
        'area_id',
        'city_id',
        'area_name',
        'orderby',
    ];

    public function city()
    {
        return $this->hasOne('App\\Models\\City', 'cityID', 'city_id');
    }
}
